package com.adong.service;

import com.adong.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author com.adong
 */
@Service
@Transactional()
public class UserService {
    @Autowired
    private UserDao userDao;

    public void accountMoney() {
        userDao.addMoney();
        int x = 10 / 0;
        userDao.reduceMoney();
    }

}
